package cn.com.zero.manager.auth.vo;

import cn.com.zero.api.auth.vo.OnlineUserVO;

/**
 * @author guoxin
 * @version 1.0.0
 * @Description
 * @date 2023/4/3 15:22
 */
public class ManagerOnlineUserVO extends OnlineUserVO {

    /**
     * 用户手机号
     */
    private String mobile;

    /**
     * 用户名称
     */
    private String userName;

    @Override
    public OnlineUserVO clone(OnlineUserVO onlineUserVO) {
        ManagerOnlineUserVO managerOnlineUserVO = null;
        try {
            managerOnlineUserVO = (ManagerOnlineUserVO)super.clone();
        } catch (CloneNotSupportedException e) {
            managerOnlineUserVO = new ManagerOnlineUserVO();
        }
        managerOnlineUserVO.setUserId(onlineUserVO.getUserId());
        managerOnlineUserVO.setLoginDevice(onlineUserVO.getLoginDevice());
        managerOnlineUserVO.setLoginIp(onlineUserVO.getLoginIp());
        managerOnlineUserVO.setLoginTime(onlineUserVO.getLoginTime());
        return managerOnlineUserVO;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
